package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ProjectName: cqjtu-store
 * @Titile: UserUpdateDTO
 * @Author: Lucky
 * @Description: 封装修改用户的信息
 */
@Data
@ApiModel("用户修改信息")
public class UserUpdateDTO {
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",name = "username",example = "rose",required = true)
    private String username;
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号",name = "phone",example = "12345678901",required = true)
    private String phone;
    @NotBlank(message = "邮箱不能为空")
    @ApiModelProperty(value = "邮箱",name = "email",example = "1234567890@qq.com",required = true)
    private String email;
    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别",name = "gender",example = "1",required = true)
    private Integer gender;

}
